/*    */ package com.behavior.expression;
/*    */ 
/*    */ import java.io.PrintStream;
/*    */ 
/*    */ public class ExpressionTest
/*    */ {
/*    */   public static void main(String[] args)
/*    */   {
/*  7 */     Context context = new Context();
/*  8 */     TerminalExpression a = new TerminalExpression("a");
/*  9 */     TerminalExpression b = new TerminalExpression("b");
/* 10 */     TerminalExpression c = new TerminalExpression("c");
/* 11 */     context.add(a, Integer.valueOf(4));
/* 12 */     context.add(b, Integer.valueOf(8));
/* 13 */     context.add(c, Integer.valueOf(2));
/* 14 */     System.out.println(new MinusOperation(new PlusOperation(a, b), c).interpreter(context));
/*    */ 
/* 16 */     String str = "4+8-2+9+9-8";
/* 17 */     Expression build = Context.build(str);
/* 18 */     System.out.println("4+8-2+9+9-8=" + build.interpreter(context));
/*    */   }
/*    */ }

/* Location:           C:\Users\lenovo\Desktop\DesignMode.jar
 * Qualified Name:     com.behavior.expression.ExpressionTest
 * JD-Core Version:    0.6.2
 */